const { NOW, DATE, INTEGER } = app.Sequelize;

module.exports = {
  update_by: {
    type: INTEGER,
    field: 'update_by',
    allowNull: false,
    defaultValue: null,
  },
  create_by: {
    type: INTEGER,
    field: 'create_by',
    allowNull: false,
    defaultValue: null,
  },
  create_time: {
    type: DATE,
    field: 'create_time',
    allowNull: false,
    defaultValue: NOW,
  },
  update_time: {
    type: DATE,
    field: 'update_time',
    allowNull: false,
    defaultValue: null,
  }
}
